www.gusucode.com > VC++ ICPQ聊天室源程序-源码程序 > VC++ ICPQ聊天室源程序-源码程序/code/ChatRoomSever/AddDisableIP.cpp
// AddDisableIP.cpp : implementation file // Download by http://www.NewXing.com #include "stdafx.h" #include "ChatRoomServer.h" #include "AddDisableIP.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CAddDisableIP dialog //static member initialize int CAddDisableIP::objcount = 0; CAddDisableIP::CAddDisableIP(CWnd* pParent /*=NULL*/) : CDialog(CAddDisableIP::IDD, pParent) { //{{AFX_DATA_INIT(CAddDisableIP) objcount++; //}}AFX_DATA_INIT } BOOL CAddDisableIP::HasObject() { if(objcount<1) return FALSE; else return TRUE; } void CAddDisableIP::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CAddDisableIP) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CAddDisableIP, CDialog) //{{AFX_MSG_MAP(CAddDisableIP) ON_WM_CLOSE() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CAddDisableIP message handlers void CAddDisableIP::OnClose() { objcount--; CDialog::OnClose(); }